package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.UserBasicInfoMapper;
import com.ruoyi.boss.domain.UserBasicInfo;
import com.ruoyi.boss.service.IUserBasicInfoService;

/**
 * 用户详情-个人信息Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class UserBasicInfoServiceImpl implements IUserBasicInfoService 
{
    @Autowired
    private UserBasicInfoMapper userBasicInfoMapper;

    /**
     * 查询用户详情-个人信息
     * 
     * @param userId 用户详情-个人信息主键
     * @return 用户详情-个人信息
     */
    @Override
    public UserBasicInfo selectUserBasicInfoByUserId(Long userId)
    {
        return userBasicInfoMapper.selectUserBasicInfoByUserId(userId);
    }

    /**
     * 查询用户详情-个人信息列表
     * 
     * @param userBasicInfo 用户详情-个人信息
     * @return 用户详情-个人信息
     */
    @Override
    public List<UserBasicInfo> selectUserBasicInfoList(UserBasicInfo userBasicInfo)
    {
        return userBasicInfoMapper.selectUserBasicInfoList(userBasicInfo);
    }

    /**
     * 新增用户详情-个人信息
     * 
     * @param userBasicInfo 用户详情-个人信息
     * @return 结果
     */
    @Override
    public int insertUserBasicInfo(UserBasicInfo userBasicInfo)
    {
        return userBasicInfoMapper.insertUserBasicInfo(userBasicInfo);
    }

    /**
     * 修改用户详情-个人信息
     * 
     * @param userBasicInfo 用户详情-个人信息
     * @return 结果
     */
    @Override
    public int updateUserBasicInfo(UserBasicInfo userBasicInfo)
    {
        return userBasicInfoMapper.updateUserBasicInfo(userBasicInfo);
    }

    /**
     * 批量删除用户详情-个人信息
     * 
     * @param userIds 需要删除的用户详情-个人信息主键
     * @return 结果
     */
    @Override
    public int deleteUserBasicInfoByUserIds(Long[] userIds)
    {
        return userBasicInfoMapper.deleteUserBasicInfoByUserIds(userIds);
    }

    /**
     * 删除用户详情-个人信息信息
     * 
     * @param userId 用户详情-个人信息主键
     * @return 结果
     */
    @Override
    public int deleteUserBasicInfoByUserId(Long userId)
    {
        return userBasicInfoMapper.deleteUserBasicInfoByUserId(userId);
    }
}
